package hhm.mybatis.pojo;

import java.util.ArrayList;
import java.util.List;

public class MenberExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MenberExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTestIdIsNull() {
            addCriterion("test_id is null");
            return (Criteria) this;
        }

        public Criteria andTestIdIsNotNull() {
            addCriterion("test_id is not null");
            return (Criteria) this;
        }

        public Criteria andTestIdEqualTo(Integer value) {
            addCriterion("test_id =", value, "testId");
            return (Criteria) this;
        }

        public Criteria andTestIdNotEqualTo(Integer value) {
            addCriterion("test_id <>", value, "testId");
            return (Criteria) this;
        }

        public Criteria andTestIdGreaterThan(Integer value) {
            addCriterion("test_id >", value, "testId");
            return (Criteria) this;
        }

        public Criteria andTestIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("test_id >=", value, "testId");
            return (Criteria) this;
        }

        public Criteria andTestIdLessThan(Integer value) {
            addCriterion("test_id <", value, "testId");
            return (Criteria) this;
        }

        public Criteria andTestIdLessThanOrEqualTo(Integer value) {
            addCriterion("test_id <=", value, "testId");
            return (Criteria) this;
        }

        public Criteria andTestIdIn(List<Integer> values) {
            addCriterion("test_id in", values, "testId");
            return (Criteria) this;
        }

        public Criteria andTestIdNotIn(List<Integer> values) {
            addCriterion("test_id not in", values, "testId");
            return (Criteria) this;
        }

        public Criteria andTestIdBetween(Integer value1, Integer value2) {
            addCriterion("test_id between", value1, value2, "testId");
            return (Criteria) this;
        }

        public Criteria andTestIdNotBetween(Integer value1, Integer value2) {
            addCriterion("test_id not between", value1, value2, "testId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdIsNull() {
            addCriterion("employee_id is null");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdIsNotNull() {
            addCriterion("employee_id is not null");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdEqualTo(Integer value) {
            addCriterion("employee_id =", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdNotEqualTo(Integer value) {
            addCriterion("employee_id <>", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdGreaterThan(Integer value) {
            addCriterion("employee_id >", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("employee_id >=", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdLessThan(Integer value) {
            addCriterion("employee_id <", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdLessThanOrEqualTo(Integer value) {
            addCriterion("employee_id <=", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdIn(List<Integer> values) {
            addCriterion("employee_id in", values, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdNotIn(List<Integer> values) {
            addCriterion("employee_id not in", values, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdBetween(Integer value1, Integer value2) {
            addCriterion("employee_id between", value1, value2, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("employee_id not between", value1, value2, "employeeId");
            return (Criteria) this;
        }

        public Criteria andScoreIsNull() {
            addCriterion("score is null");
            return (Criteria) this;
        }

        public Criteria andScoreIsNotNull() {
            addCriterion("score is not null");
            return (Criteria) this;
        }

        public Criteria andScoreEqualTo(String value) {
            addCriterion("score =", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotEqualTo(String value) {
            addCriterion("score <>", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThan(String value) {
            addCriterion("score >", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThanOrEqualTo(String value) {
            addCriterion("score >=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThan(String value) {
            addCriterion("score <", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThanOrEqualTo(String value) {
            addCriterion("score <=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLike(String value) {
            addCriterion("score like", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotLike(String value) {
            addCriterion("score not like", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreIn(List<String> values) {
            addCriterion("score in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotIn(List<String> values) {
            addCriterion("score not in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreBetween(String value1, String value2) {
            addCriterion("score between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotBetween(String value1, String value2) {
            addCriterion("score not between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andFirstResitIsNull() {
            addCriterion("first_resit is null");
            return (Criteria) this;
        }

        public Criteria andFirstResitIsNotNull() {
            addCriterion("first_resit is not null");
            return (Criteria) this;
        }

        public Criteria andFirstResitEqualTo(String value) {
            addCriterion("first_resit =", value, "firstResit");
            return (Criteria) this;
        }

        public Criteria andFirstResitNotEqualTo(String value) {
            addCriterion("first_resit <>", value, "firstResit");
            return (Criteria) this;
        }

        public Criteria andFirstResitGreaterThan(String value) {
            addCriterion("first_resit >", value, "firstResit");
            return (Criteria) this;
        }

        public Criteria andFirstResitGreaterThanOrEqualTo(String value) {
            addCriterion("first_resit >=", value, "firstResit");
            return (Criteria) this;
        }

        public Criteria andFirstResitLessThan(String value) {
            addCriterion("first_resit <", value, "firstResit");
            return (Criteria) this;
        }

        public Criteria andFirstResitLessThanOrEqualTo(String value) {
            addCriterion("first_resit <=", value, "firstResit");
            return (Criteria) this;
        }

        public Criteria andFirstResitLike(String value) {
            addCriterion("first_resit like", value, "firstResit");
            return (Criteria) this;
        }

        public Criteria andFirstResitNotLike(String value) {
            addCriterion("first_resit not like", value, "firstResit");
            return (Criteria) this;
        }

        public Criteria andFirstResitIn(List<String> values) {
            addCriterion("first_resit in", values, "firstResit");
            return (Criteria) this;
        }

        public Criteria andFirstResitNotIn(List<String> values) {
            addCriterion("first_resit not in", values, "firstResit");
            return (Criteria) this;
        }

        public Criteria andFirstResitBetween(String value1, String value2) {
            addCriterion("first_resit between", value1, value2, "firstResit");
            return (Criteria) this;
        }

        public Criteria andFirstResitNotBetween(String value1, String value2) {
            addCriterion("first_resit not between", value1, value2, "firstResit");
            return (Criteria) this;
        }

        public Criteria andSecondResitIsNull() {
            addCriterion("second_resit is null");
            return (Criteria) this;
        }

        public Criteria andSecondResitIsNotNull() {
            addCriterion("second_resit is not null");
            return (Criteria) this;
        }

        public Criteria andSecondResitEqualTo(String value) {
            addCriterion("second_resit =", value, "secondResit");
            return (Criteria) this;
        }

        public Criteria andSecondResitNotEqualTo(String value) {
            addCriterion("second_resit <>", value, "secondResit");
            return (Criteria) this;
        }

        public Criteria andSecondResitGreaterThan(String value) {
            addCriterion("second_resit >", value, "secondResit");
            return (Criteria) this;
        }

        public Criteria andSecondResitGreaterThanOrEqualTo(String value) {
            addCriterion("second_resit >=", value, "secondResit");
            return (Criteria) this;
        }

        public Criteria andSecondResitLessThan(String value) {
            addCriterion("second_resit <", value, "secondResit");
            return (Criteria) this;
        }

        public Criteria andSecondResitLessThanOrEqualTo(String value) {
            addCriterion("second_resit <=", value, "secondResit");
            return (Criteria) this;
        }

        public Criteria andSecondResitLike(String value) {
            addCriterion("second_resit like", value, "secondResit");
            return (Criteria) this;
        }

        public Criteria andSecondResitNotLike(String value) {
            addCriterion("second_resit not like", value, "secondResit");
            return (Criteria) this;
        }

        public Criteria andSecondResitIn(List<String> values) {
            addCriterion("second_resit in", values, "secondResit");
            return (Criteria) this;
        }

        public Criteria andSecondResitNotIn(List<String> values) {
            addCriterion("second_resit not in", values, "secondResit");
            return (Criteria) this;
        }

        public Criteria andSecondResitBetween(String value1, String value2) {
            addCriterion("second_resit between", value1, value2, "secondResit");
            return (Criteria) this;
        }

        public Criteria andSecondResitNotBetween(String value1, String value2) {
            addCriterion("second_resit not between", value1, value2, "secondResit");
            return (Criteria) this;
        }

        public Criteria andThirdResitIsNull() {
            addCriterion("third_resit is null");
            return (Criteria) this;
        }

        public Criteria andThirdResitIsNotNull() {
            addCriterion("third_resit is not null");
            return (Criteria) this;
        }

        public Criteria andThirdResitEqualTo(String value) {
            addCriterion("third_resit =", value, "thirdResit");
            return (Criteria) this;
        }

        public Criteria andThirdResitNotEqualTo(String value) {
            addCriterion("third_resit <>", value, "thirdResit");
            return (Criteria) this;
        }

        public Criteria andThirdResitGreaterThan(String value) {
            addCriterion("third_resit >", value, "thirdResit");
            return (Criteria) this;
        }

        public Criteria andThirdResitGreaterThanOrEqualTo(String value) {
            addCriterion("third_resit >=", value, "thirdResit");
            return (Criteria) this;
        }

        public Criteria andThirdResitLessThan(String value) {
            addCriterion("third_resit <", value, "thirdResit");
            return (Criteria) this;
        }

        public Criteria andThirdResitLessThanOrEqualTo(String value) {
            addCriterion("third_resit <=", value, "thirdResit");
            return (Criteria) this;
        }

        public Criteria andThirdResitLike(String value) {
            addCriterion("third_resit like", value, "thirdResit");
            return (Criteria) this;
        }

        public Criteria andThirdResitNotLike(String value) {
            addCriterion("third_resit not like", value, "thirdResit");
            return (Criteria) this;
        }

        public Criteria andThirdResitIn(List<String> values) {
            addCriterion("third_resit in", values, "thirdResit");
            return (Criteria) this;
        }

        public Criteria andThirdResitNotIn(List<String> values) {
            addCriterion("third_resit not in", values, "thirdResit");
            return (Criteria) this;
        }

        public Criteria andThirdResitBetween(String value1, String value2) {
            addCriterion("third_resit between", value1, value2, "thirdResit");
            return (Criteria) this;
        }

        public Criteria andThirdResitNotBetween(String value1, String value2) {
            addCriterion("third_resit not between", value1, value2, "thirdResit");
            return (Criteria) this;
        }

        public Criteria andAbsentFlagIsNull() {
            addCriterion("absent_flag is null");
            return (Criteria) this;
        }

        public Criteria andAbsentFlagIsNotNull() {
            addCriterion("absent_flag is not null");
            return (Criteria) this;
        }

        public Criteria andAbsentFlagEqualTo(String value) {
            addCriterion("absent_flag =", value, "absentFlag");
            return (Criteria) this;
        }

        public Criteria andAbsentFlagNotEqualTo(String value) {
            addCriterion("absent_flag <>", value, "absentFlag");
            return (Criteria) this;
        }

        public Criteria andAbsentFlagGreaterThan(String value) {
            addCriterion("absent_flag >", value, "absentFlag");
            return (Criteria) this;
        }

        public Criteria andAbsentFlagGreaterThanOrEqualTo(String value) {
            addCriterion("absent_flag >=", value, "absentFlag");
            return (Criteria) this;
        }

        public Criteria andAbsentFlagLessThan(String value) {
            addCriterion("absent_flag <", value, "absentFlag");
            return (Criteria) this;
        }

        public Criteria andAbsentFlagLessThanOrEqualTo(String value) {
            addCriterion("absent_flag <=", value, "absentFlag");
            return (Criteria) this;
        }

        public Criteria andAbsentFlagLike(String value) {
            addCriterion("absent_flag like", value, "absentFlag");
            return (Criteria) this;
        }

        public Criteria andAbsentFlagNotLike(String value) {
            addCriterion("absent_flag not like", value, "absentFlag");
            return (Criteria) this;
        }

        public Criteria andAbsentFlagIn(List<String> values) {
            addCriterion("absent_flag in", values, "absentFlag");
            return (Criteria) this;
        }

        public Criteria andAbsentFlagNotIn(List<String> values) {
            addCriterion("absent_flag not in", values, "absentFlag");
            return (Criteria) this;
        }

        public Criteria andAbsentFlagBetween(String value1, String value2) {
            addCriterion("absent_flag between", value1, value2, "absentFlag");
            return (Criteria) this;
        }

        public Criteria andAbsentFlagNotBetween(String value1, String value2) {
            addCriterion("absent_flag not between", value1, value2, "absentFlag");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}